<template>
  <div id="search">
    <div class="box">
      <img src="img/search.png" alt="" class="search-img">
      <input class="search-input" placeholder="请输入搜索内容" type="text">
      <button class="search-btn">搜索</button>
    </div>
  </div>
</template>

<script>
export default {
  data:function(){
    return {

    }
  },
  mounted(){

  },
  methods:{

  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
  *{
    padding: 0;
    margin: 0;
  }
  .box{
    width:90%;
    height:30px;
    border:1px solid #ababab;
    border-radius:4px;
    background-color:#f2f2f2;
    margin:10px auto;
    display:flex;
    justify-content: space-around;
    overflow: hidden;
  }
  .search-img{
    width: 30px;
    height: 30px;
    flex:0 0 auto;
  }
  .search-input{
    width: 100px;
    height:30px;
    border:0;
    outline: none;
    flex:1 1 auto;
    background-color: #f2f2f2;
  }
  .search-btn{
    width: 60px;
    height: 30px;
    text-align:center;
    line-height:30px;
    border:0;
    outline:none;
    background-color: #f2f2f2;
    color:#666;
    flex:0 0 auto;
  }
</style>
